package com.sumainfor.pc.gmio.controller.director;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.common.utlis.Pager;
import com.sumainfor.pc.gmio.service.DiWithdrawalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.io.Serializable;
import java.util.Map;

/**
 *退租账单
 */
@RestController
@RequestMapping("/director/Withdrawal")
public class DiWithdrawalController implements Serializable {
    @Autowired
    private DiWithdrawalService diWithdrawalService;
    /**
     *查询账单列表
     */
    @GetMapping("/getWithdrawalList")
    public JsonResult getWithdrawalList(@RequestParam Map<String,Object>params,Pager pager){
        return diWithdrawalService.getWithdrawalList(params,pager);
    }
    /**
     * 租后主管审核退租
     */
    @PostMapping("/updateWithdrawal")
    public JsonResult updateWithdrawal(@RequestBody Map<String,Object>params){
        return diWithdrawalService.updateWithdrawal(params);
    }
}
